<ul>
	<li style="margin-top: 0px;"><a <?php if($this->uri->segment(2)==''){ ?>class="active"<?php } ?> href="<?=PATH_URL.'admincp'?>"><span class="menu_dashboard">Dashboard</span></a></li>
	<?php
	if($menu){
		foreach($menu as $v){
			if(admin_check_permission($v->id,'r')){
				$class = $module==$v->name_function ? 'class="active"' : '';
	?>
	<li>
		<a <?=$class?> href="<?=PATH_URL.'admincp/'.$v->name_function.'/'?>">
			<span class="menu_items"><?=$v->name?></span>
		</a>
	</li>
	<?php
			}
		}
	}
	?>
	<li><a href=""><span class="menu_setting">Setting</span></a></li>
</ul>